<template>
  <!-- 资费定义 -->
  <div>
    <SettingModule :model="model" :projectId="projectId"  />
  </div>
</template>
<script>
import SettingModule from './modules/SettingModule.vue'
import { getAction } from '@api/manage'
export default {
  components: {
    SettingModule,
  },
  data() {
    return {
      projectId: '',
      model: {},
      url: {
        queryById: '/exProject/exProject/queryById',
      },
    }
  },
  created() {
    this.projectId = this.$route.query.projectId
    this.projectName = this.$route.query.projectName
    this.showDetail()
  },
  methods: {
    showDetail() {
      let that = this
      getAction(this.url.queryById, { id: this.projectId }).then((res) => {
        if (res.success) {
          var record = res.result
          that.model = record
        }
      })
    },
  },
}
</script>
